import {
    request
} from "./request";
import qs from "qs";


//   添加厂商
export function addFactory(obj) {
    return request({
        url: "factory/addFactory",
        method: "post",
        data: obj
    });
}

// 获取 全部厂商
export function getFactoryByName(obj) {
    return request({
        url: "factory/getFactoryByName",
        method: "post",
        data: qs.stringify(obj)
    });
}

//  下线 厂商
export function updateFactoryDown(obj) {
    return request({
        url: "factory/updateFactoryDown",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 上线 厂商
export function updateFactoryUp(obj) {
    return request({
        url: "factory/updateFactoryUp",
        method: "post",
        data: obj
    });
}